import actions from '../actions/app'
import mutations from '../mutations/app'
export  const  app = {
    state:{
        firstUrl: null, //首次进入的程序的地址  ios调用微信时候
        currentUrl:null,  //当前路由地址
        routerSwipe:false //控制父级页面左转
    },
    getters:{
        firstUrl: state => {
            return state.firstUrl
        },
        currentUrl:state=>{
            return state.currentUrl
        },
        routerSwipe:state=>{
            return state.routerSwipe
        }
    },
    actions,
    mutations
}